/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-12-15 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表查询
export const getList = (params) => axios.post(`${SERVER.WHOLESALES}/deliveryOrder/detail/page/majorAddress`, params)
// 查询详情
export const getDetail = (params) => axios.get(`${SERVER.WHOLESALES}/ttVsDeliveryOrder/selectOne/${params.id}`, { params })
//  导出
// export const exportList = (params) => axios.post(`${SERVER.WHOLESALES}/orderGoods/export`, params, { responseType: 'blob' })
// 车辆配置五级选择
export const vehicleConfiguration = (id, params) => axios.get(`${SERVER.BASEDATA}/vehicleProduct/productInfo/productTreeNew`, { params: { type: id, level: 6, ...params } });
// 获取订单细分类型
export const getTypesub = (params) => axios.get(`${SERVER.WHOLESALES}/fiOrderTypeSub/searchFiOrderTypeSubDTOListNotPage`, { params })
// 大客户项目列表
export const getmajorProject = (params) => axios.get(`${SERVER.CMSCLOUD_BIGCUSTOMER}/major/oem/majorProject`, {params})
// 获取折扣详情
export const getDiscountDetails = (params) => axios.get(`${SERVER.WHOLESALES}/orderGoods/getDiscountDetails`, { params })
//获取经销商余额池
export const getAmount = (params) => axios.get(`${SERVER.WHOLESALES}/orderGoods/getAmount`, {params})
// 获取所有资金类型
export const gettmFiAccountType = (params) => axios.post(`${SERVER.WHOLESALES}/tmFiAccountType/list`, params)
// 获取工厂仓库
export const gettmVsWarehouse= (params) => axios.post(`${SERVER.WHOLESALES}/tmVsWarehouse/list`, params)
// 调整
export const editmajorAddress = (params) => axios.post(`${SERVER.WHOLESALES}/deliveryOrder/detail/edit/majorAddress`, params)
